<%--
  Created by IntelliJ IDEA.
  User: student
  Date: 2019/9/11
  Time: 8:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basepath %>"/>
    <link rel="stylesheet" href="layui/css/layui.css">
    <style>
        #box {
            height: 300px;
            width: 500px;
            margin: 140px auto;
            background-color: #ccc;
            padding: 100px 80px 0px 10px;
        }

        #sub {
            text-align: center;
        }
    </style>
</head>
<body>
    <div id="box">
        <form class="layui-form" action="user/login" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">账号</label>
                <div class="layui-input-block">
                    <input id="username" type="text" name="username" name="title" required  lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input id="password" type="text"  name="password" name="title" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <br>
            <div class="layui-form-item" id="sub">
                <input type="submit" class="layui-btn layui-btn-normal" value="提交">
                <input type="reset" class="layui-btn layui-btn-danger" value="取消">
            </div>
        </form>
    </div>
    <script src="layui/layui.all.js"></script>
</body>
</html>
